@extends('admin.layout.index')
@section('content')
@if (count($errors) > 0)
	<script>
		alert('{{ $errors }}');
	</script>
@endif
<div class="portlet box blue">

		<div class="portlet-title">

			<div class="caption"><i class="icon-reorder"></i>角色修改</div>

			<div class="tools">

				<a href="javascript:;" class="reload"></a>


			</div>

		</div>

		<div class="portlet-body form">


			<!-- BEGIN FORM-->

			<form action="/admin/role/{{ $data['id'] }}" class="form-horizontal" method="post">
				{{ csrf_field() }}
				<input type="hidden" name="_method" value="PUT">
				<div class="control-group warning">

					<label class="control-label" for="inputWarning">角色名</label>

					<div class="controls">

						<input type="text" class="span6 m-wrap" id="username" name="name" value="{{ $data['name'] }}">

						<span class="help-inline" id='userSpan'></span>

					</div>

				</div>
				<div class="control-group warning">

					<label class="control-label" for="inputWarning">角色描述</label>

					<div class="controls">

						<input type="text" class="span6 m-wrap"  id="username" name="description" value="{{ $data['description'] }}">

						<span class="help-inline" id='userSpan'></span>

					</div>

				</div>
				
				
				<div class="form-actions">

					<input type="submit" class="btn blue" id="submit" value="修改">
					<button type="reset" class="btn">重置</button>

				</div>
				
				

			</form>

			<!-- END FORM-->

		</div>

	</div>
@endsection